<head>
        <link href="/static/admin/css/plugins/footable/footable.core.css" rel="stylesheet">
</head>
<style>
    .footable-row-detail-name{
    display: none;
    }
    .footable-row-detail-inner{
    width: 100%;
    }
    /* .table-hide-div>.info-table{
    border-color: #fff;
    } */
    .table-hide-div>.info-table .info-table-row {
    padding:0 10px;
    }
    /* .table-hide-div>.info-table .info-table-line{
    border-color: #fff;
    }
    .table-hide-div>.info-table .info-table-line .info-table-row{
    border: #fff 2px solid;
    } */
    .table-hide-div>.info-table .info-table-line .info-table-row-name{
    text-align: right;
    color: #2b2b2b;
    }


    .zxlog-body .log-table{
        width: 100%;
    }
    .zxlog-body .log-table thead .log-td{
        text-align: center;
    }
</style>

    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="10">
        <thead>
            <tr>
                <th data-toggle="true">编号</th>
                <th>学员/咨询人名称</th>
                <th>邮箱</th>
                <th>咨询顾问</th>
                <th>学生电话</th>
                <th>咨询人电话</th>
                <th>咨询人与学生的关系</th>
                <th>来源</th>
                <th>接待员</th>
                <th>咨询日期</th>
                <th>学生分类</th>
                <th>操作</th>

                <th data-hide="all"></th>
            </tr>
        </thead>
        <tbody class="footable-tbody-hide">
            {foreach name="res" item="vo"}
            <tr >
                <td>{$vo.sid}</td>
                <td>{$vo.sname}</td>
                <td>{$vo.semai}</td>
                <td>{$vo.zxsname}</td>
                <td>{$vo.stel}</td>
                <td>{$vo.zxr_tel}</td>
                <td>{$vo.rapport}</td>
                <td>{$vo.infosource}</td>
                <td>{$vo.receptionist}</td>
                <td>{$vo.create_time}</td>
                
                <td>
                    {if condition = '$vo.sstatus == 2'}
                        {if condition = '$vo.contract_rate == -1'}
                            未跟进
                        {else /}
                            <font size="2" color="{$status_config[$vo.sstatus]['color']}">{$contract_rate_select[$vo.contract_rate]['name']}
                            </font>
                        {/if}
                    {else/}
                            <font size="2" color="{$status_config[$vo.sstatus]['color']}">{$status_config[$vo.sstatus]['name']}</font>
                    {/if}

                </td>

                <td class="tools">
                    {if condition = "in_array(3,$ra)"}
                        {if condition = "$roles_id == 13? $vo.sstatus == 3 : true"}
                        <a href="{:url('Student/update')}?id={$vo.sid}"><i class="glyphicon glyphicon-pencil" style="color:#19a9d5"></i></a> 
                        {/if}
                    {/if}
                    {if condition = "in_array(5,$ra)"}
                        {if condition = "$vo['sstatus'] neq 1"}
                            &nbsp; <a class="signing" id="signing" href="{:url('Signing/index')}?id={$vo.sid}" data-id="{$vo.sid}"><i class="fa fa-edit"
                            style="color:#19a9d5"></i></a>
                        {/if}
                    {/if}

                    {if condition = "$vo['sstatus'] eq 2"}
                        &nbsp; <a class="transfer" id="transfer" data-id="{$vo.sid}" zxsid='{$vo.consultant}'> <i class="fa fa-random"
                            style="color:#19a9d5"> </i></a>
                    {/if}
                    {if condition='in_array(2,$ra)'}
                        &nbsp; <a class="del" data-id="{$vo.sid}"><i class="glyphicon glyphicon-trash" style="color:#19a9d5"></i></a>
                    {/if}
                </td>
                
                <td>
                    <div style="padding: 10px;background: #f2f2f2;" class="table-hide-div">
                        <table style="width: 100%;" class="info-table">
                            <tbody>
                                
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    当前进度:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.schedule}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    下次回访时间:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.returnvisit_time}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    状态定义日期:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.status_time}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    出生年月:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.birthday}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    毕业时间:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.graduation_time}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    来源明细:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.source_details}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    文化程度:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                {volist name="education_select" id='voedu'}
                                                    {if condition="$voedu.id===$vo.education"} {$voedu.name} {/if}
                                                {/volist}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    毕业学校:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.graduation_school}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    所学专业:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.degree}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    目标学历:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.target_education}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    在读学校:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.current_school}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    高考英语成绩:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.english_scores}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                咨询形式:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                {$vo.zx_form}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    学生联系方式:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.stel}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    在读年级:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.current_grade}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    婚否:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                {eq name="vo['married']" value="1"}
                                                    是
                                                {else/}
                                                    否
                                                {/eq}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    外语水平:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.english_Level}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    介绍给中介:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.agent}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    性别:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                {eq name="vo['ssex']" value="1"}
                                                        男 
                                                {else/} 
                                                        女
                                                {/eq}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    是否参加雅思考试:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                {eq name="vo['ielts_test']" value="1"}
                                                是
                                                {else/}
                                                否
                                                {/eq}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    留学国家:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.study_abroad_country}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                            <td class="info-table-row info-table-row-name">
                                                    微信/QQ:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.wechatqq}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                详细地址:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.province}
                                                    {$vo.city}
                                                    {$vo.county}
                                                    {$vo.sadd}
                                            </td>
                                            <td class="info-table-row info-table-row-name">
                                                    留学城市:
                                            </td>
                                            <td class="info-table-row info-table-row-val">
                                                    {$vo.study_abroad_city}
                                            </td>
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                        <td class="info-table-row info-table-row-name">
                                            备注信息:
                                        </td>
                                        <td colspan='10' class="info-table-row info-table-row-val">
                                            {$vo.remarks}
                                        </td>
                                    
                                    </tr>
                                    <tr colspan='10' class="info-table-line">
                                        <td class="info-table-row info-table-row-name">
                                            咨询日志:
                                        </td>
                                        <td colspan='10' class="info-table-row info-table-row-val">
                                            {foreach $vo.oldzxlog as $log}
                                            <div class="log">
                                                <span class="time">{$log.create_time|date='Y年m月d日',###}</span>
                                                <span class="operator">{$log.username}</span>
                                                <span class="content">{$log.content}</span>
                                            </div>
                                            {/foreach}
                                        </td>
                                    </tr>
                            </tbody>
                        </table>

                        <!-- 咨询日志列表 -->
                        <!-- <div class="zxlog-body">
                            <table class="log-table">
                                <thead>
                                    <tr class="log-tr"><td class="log-td" colspan='10'>
                                         咨询日志
                                    </td></tr>
                                </thead>
                                <tbody>
                                    
                                </tbody>
                            </table>
                        </div> -->
                        <!-- 咨询日志列表 end -->
                    </div>
                </td>
            </tr>
            {/foreach}
        </tbody>
        <tfoot>
                <tr style="display:none">
                        <td >
                            <ul class="pagination pull-right"></ul>
                        </td>
                </tr>
        </tfoot>
    </table>
    <div class="pagebar">{$res->render()}</div>
 
<script>
    
    window.onload = function () {
        $('.footable-tbody-hide').css('visibility','visible');
         //给每一个分页按钮的 href属性添加 key 和 id 参数
        layui.use('element', function(){
        var element = layui.element;
        });
    }

</script>

